<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/oa/annCollect.js?time=' + sys_get_time();
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			var page = sys_fill_parm('queryAnnCollectForm');
			queryAnnCollect_annCollect(page);
		}
	});
});
	$('#annEditDiv').tabs();
	$('#queryCollectForm').find("input:checkbox, input:radio").not('input.ibtn').uniform();
</script>
<#import "/freemarker/modeltype.ftl" as mt>
<div id="annEditDiv">
	<div class="tab_menu">
	   	<ul class="tabLeft">
	   		<li><a href="#tabs-1" onclick="javascript: $('#ann_type').val('1');queryAnnCollect_annCollect();">查看公告</a></li>
			<li><a href="#tabs-2" onclick="javascript: $('#ann_type').val('2');queryAnnCollect_annCollect();">收藏公告</a></li>
		</ul>
	</div>
	<div id="tabs-1">
		<form id="queryAnnCollectForm">
		<input type="hidden" id="ann_type" name="type" value="1" />
		<table class="search_term_table">
			<tr><th style="width:60px;">标题</th>
				<td><input class="form-control" type="text" name="title" style="width:150px;"/><input type="hidden" name="cu" value="${cu_code}"/></td>
				<th style="width:60px;">创建者</th>
				<td><input class="form-control" type="text" name="cuname" style="width:150px;"/></td>
				<td style="text-align:right;">
				<button class="btn btn-info" onclick="javascript:queryAnnCollect_annCollect(); return false;"><i class="icon-search"></i> 查 询 </button>
				</td>
			</tr>
			<tr><th style="width: 80px;">发布时间</th>
				<td>
					<input id="start" type="text" style="width:80px;" name="start" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});">
					至  
					<input id="end" type="text" style="width:80px;" name="end" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});">
				</td>
			</tr>
		</table>
		</form>
		<div id="annCollectResultList"></div>
	</div>

	<div id="tabs-2">	
		<form id="queryCollectForm">
		<input type="hidden" id="ann_type" name="type" value="2" />
			<table class="search_term_table">
				<tr><th style="width:60px;">标题</th>
					<td><input class="form-control" type="text" name="title" style="width:150px;"/><input type="hidden" name="cu" value="${cu_code}"/></td>
					<th style="width:60px;">创建者</th>
					<td><input class="form-control" type="cuname" name="cuname" style="width:150px;"/></td>
					<td style="text-align:right;">
					<button class="btn btn-info" onclick="javascript:queryAnnCollect_annCollect(); return false;"><i class="icon-search"></i> 查 询 </button>
					</td>
				</tr>
				<tr><th style="width: 80px;">发布时间</th>
					<td>
						<input id="start" type="text" style="width:80px;" name="start" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});">
						至  
						<input id="end" type="text" style="width:80px;" name="end" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});">
					</td>
					<th style="width: 60px;">是否屏蔽</th>
					<td><@mt.YesOrNo r=true name='deleted' d=false mc=true /></td>
				</tr>
			</table>
		</form>
		<div id="collectResultList"></div>
	</div>
</div>